package com.lbj.googleplay.googleplay100.ui.holder;

import android.view.View;
import android.widget.TextView;

import com.lbj.googleplay.googleplay100.R;
import com.lbj.googleplay.googleplay100.domain.CategoryInfo;
import com.lbj.googleplay.googleplay100.utils.UIUtils;

public class TitleHolder extends BaseHolder<CategoryInfo>{


    private TextView tv_title;

    @Override
    public View initView() {
        View view = UIUtils.inflate(R.layout.list_item_title);
         tv_title = view.findViewById(R.id.tv_title);
         return view;
    }

    @Override
    public void refreshView(CategoryInfo data) {
        tv_title.setText(data.title);
    }
}
